Repository navigation
Bring the Tier 3 work onto main - #11
Merged
Merged
Conversation
fill_betweenx is the same band as fill_between with the axes read the other way round, so it is the same series with a flag rather than a kind of its own. stackplot is nothing but a run of bands, each starting where the last one stopped. axline is the one that needs its own drawing: it has no extent, so it takes no part in the limits and is clipped to the axes rectangle in pixels.
The axes carried a tight flag, which was only ever the question of whether the five percent margin was applied. A margin per axis says the same thing and says more, so tight becomes a margin of nothing and margins() sets whatever else is wanted. autoscale() then pins the limits where the data has put them, which is the only way to stop an axis from growing with what is drawn next.
The bar was three tuned constants, one of which was a width fraction that only came out right at the default figure size; matplotlib gets the same number from an aspect ratio, so a bar in a narrow subplot was too thin. Taking matplotlib's four numbers instead - fraction, pad, shrink and aspect - gives the horizontal bar for free, since the only difference is which way the slices and the ticks run.
Matplotlib hatches by tiling a pattern behind the shape and clipping it to the path; the backend API here clips to rectangles only, on purpose, so the lines are cut to the shape where they are made instead. A ruled line crosses the outline an even number of times, so the crossings sort into pairs and each pair is one dash, which works for any polygon and asks nothing of the four backends.
Tier 3: hatching, colorbar orientation, fills, margins, mathtext and 3D extras
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #10 merged into
polish1afterpolish1had already gone intomain, so the six Tier 3 commits never reachedmain. This is that merge, unchanged: hatching, colorbar orientation, fills, margins, mathtext (\frac,\sqrt, greek) and the 3D extras. Verified locally: flang builds, all 95 cases within tolerance.